<!DOCTYPE html>
<html lang="en">
<head>
    <!--
    @Author 硕鼠
    @Date 2020/4/18 19:55
    @Version 1.0
    @Description 文件说明
  -->
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script>
        $(function () {
            // $('#btn1').click(function () {
            // });
            $('#btn1').bind('click',function () { //和上述函数一样的效果
                alert('你好');
            });
        });
    </script>
</head>
<body>
    <button type="button" id="btn1">click me</button>
</body>
</html>